package demo3;

public class OuterClass1 {
    public int data1 = 10;
    private int data2 = 20;
    public static final int DATA3 = 30;

    // 实例内部类
    class InnerClass{
        public int data1 = 1111;
        public int data4 = 40;
        private int data5 = 50;
        public static final int data6 = 60;

        public void testInner(){
            System.out.println("testInner方法执行了...");
            System.out.println(OuterClass1.this.data1);
            System.out.println(data1);
            System.out.println(data2);
            System.out.println(DATA3);
            System.out.println(data4);
            System.out.println(data5);
            System.out.println(data6);
        }
    }

    public void test(){
        System.out.println("test方法执行力...");

    }
}
